Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caniuse-lite

Package Overview
Dependencies
Maintainers
3
Versions
858
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-lite

A smaller version of caniuse-db, with only the essentials!

  • 1.0.30001684
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51M
decreased by-9.05%
Maintainers
3
Weekly downloads
 
Created

What is caniuse-lite?

The caniuse-lite npm package is a lighter version of the full caniuse database, which provides up-to-date browser support tables for front-end web technologies. It is used for checking the compatibility of web features in different browsers and browser versions.

What are caniuse-lite's main functionalities?

Browser support data retrieval

Retrieve browser support data for a specific feature, such as CSS flexbox.

const caniuse = require('caniuse-lite');
const featureData = caniuse.feature(caniuse.features.flexbox);
console.log(featureData);

Browser usage statistics

Get usage statistics for different versions of a specific browser, like Chrome.

const caniuse = require('caniuse-lite');
const browserStats = caniuse.getBrowserUsageByVersion('chrome');
console.log(browserStats);

Data for browser versions

Retrieve a list of versions for a given browser, such as Firefox.

const caniuse = require('caniuse-lite');
const versions = caniuse.getVersions('firefox');
console.log(versions);

Region-based browser usage statistics

Get browser usage statistics for a specific region, like the United States.

const caniuse = require('caniuse-lite');
const regionUsage = caniuse.getRegion('US');
console.log(regionUsage);

Other packages similar to caniuse-lite

Keywords

FAQs

Package last updated on 24 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc